<?

//Initiate Authenticate
SecurityRedirect ();

//initiate Vars
define("PRIMARY_KEY","nobkt");
$KEY[]         = array("PRIMARY_KEY"=>PRIMARY_KEY);
$FileName      = "ais_report_soa_detail.php";
$FileTemplate  = "ais_report_soa_detail_list.html";
$TableName     = "ais_piutang";
$SubHeaderTitle= "SOA Detail";
$PageSize      = 10;
$HTMLGridList  = "StatementCustomer";

//************ FORM ACTION **************
$periodYear  = GetParam("y","");
$periodMonth = GetParam("m","");
$customerID  = GetParam("customerID","");

//******* SHOW FORM CONTENT *********
$TBS = new clsTinyButStrong;
$TBS->LoadTemplate($MOD_TEMPLATE_DIR."/".$FileTemplate);

$TBS->MergeBlock("officeformblk",$DBConnection->GetConnection1(),"SELECT * FROM tblkantor");
/*
$SQL = "SELECT * FROM tblcoa WHERE tipe=0 ORDER BY skada ";
$TBS->MergeBlock("fromskadaformblk",$DBConnection->GetConnection1(),$SQL);
$TBS->MergeBlock("toskadaformblk",$DBConnection->GetConnection1(),$SQL);
*/
//var_dump(GetArrayYear());
$SQLCur = "SELECT * FROM tblcurrency";
$TBS->MergeBlock("currblk",$DBMysql,$SQLCur);
$TBS->MergeBlock("monthformblk",GetArrayMonth());
$TBS->MergeBlock("yearformblk",GetArrayYear());
$TBS->Show();
?>
